using Pinwheel.Service;

namespace Pinwheel.Kernel
{
    public interface IGatewayService : ISocketListener, IServiceInstance
    {

    }
    
    public interface IGatewayProvider
    {
        IGatewayService CreateGateService(ServiceManager serviceManager);
    }
    
    public class DefaultGatewayProvider : IGatewayProvider
    {
        public IGatewayService CreateGateService(ServiceManager serviceManager)
        {
            var gate = new GatewayBase();
            gate.Create(serviceManager, null);
            return gate;
        }
    }
}